import java.awt.*;

public class Block extends Rectangle {
	public int groundId;
	public int airId;
	
	public Block(int x, int y, int width, int height,int groundID, int airID) {
		setBounds(x,y,width,height);
		
		//System.out.println(x);
		//System.out.println(y);
		this.groundId = groundID;
		this.airId = airID; 
	}
	
	public void draw(Graphics g) {
		
		g.drawImage(Screen.tileset_ground[groundId], x,y,width,height,null); 
		// Borders around rect
		//g.drawRect(x,y,width,height);		
		
		if(airId != Value.airAir) {
			// draw image, 26x2600
			//System.out.println(airId);
			g.drawImage(Screen.tileset_air[airId], x,y,width,height,null);
			g.drawRect(x,y,width,height);
		}
		
	}
}
